package com.sfh.gd.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.RelationOneToOne;
import com.sfh.gd.domain.entity.GameTeamDO;
import com.sfh.gd.domain.entity.MemberDO;
import lombok.Builder;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class GamePKVO {

    private Long pkId;
    /**
     * 赛事ID
     */
    private Long gameId;
    /**
     *状态 1-进行中  2-已结束 3-已取消
     */
    private Integer state;
    /**
     * 桌号
     */
    private String tabNo;
    /**
     * 轮次
     */
    private Integer roundCount;

    /**
     * A组队伍Id
     */
    private Long teamAId;
    /**
     * A组队伍当前积分
     */
    private Long teamAPoints;
    /**
     * B组队伍Id
     */
    private Long teamBId;
    /**
     * B组队伍当前积分
     */
    private Long teamBPoints;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    //方位东选手
    private MemberVO eastUser;
    //方位西选手
    private MemberVO  westUser;

    //方位南选手
    private MemberVO  southUser;
    //方位北选手
    private MemberVO  northUser;
}
